package com.spa.application.dto.admin;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spa.application.converter.AmountIntegerToYuanConverter;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class ShopWithdrawExportDTO {

    @ExcelProperty(value = "ID")
    @ColumnWidth(20)
    private String id;

    @ExcelProperty(value = "门店名称")
    @ColumnWidth(20)
    private String shopName;

    @ExcelProperty(value = "提现金额",converter = AmountIntegerToYuanConverter.class)
    @ColumnWidth(15)
    private Integer amount;

    @ExcelProperty(value = "当前状态")
    @ColumnWidth(15)
    private String status;

    @ExcelProperty(value = "姓名")
    @ColumnWidth(15)
    private String realName;

    @ExcelProperty(value = "银行卡号")
    @ColumnWidth(30)
    private String bankNo;

    @ExcelProperty(value = "开户行")
    @ColumnWidth(30)
    private String bankDetail;

    @ExcelProperty(value = "银行行号")
    @ColumnWidth(30)
    private String bankNumber;

    @ExcelProperty(value = "提现申请时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    @ExcelProperty(value = "审核时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    @ExcelProperty(value = "审核人")
    @ColumnWidth(15)
    private String auditName;

    @ExcelProperty(value = "打款时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
}
